﻿using System;
using System.Collections.Generic;
using AEM.Data.BLL.Users;
using AEM.Data.DAL;

namespace AEM.Data
{
    /// <summary>
    /// 数据的静态配置类
    /// </summary>
    public static class Config
    {        
        public static UserLoginSuccessArgs userLogin { get; set; }

        public static List<RecievedTempLog> lastData { get; set; }

        public static string AEMConfigPath { get; set; }

        public static List<Data.Model.LiftInfo> LiftInftList { get; set; }
        public static List<Model.TypeLib> TypeLibList { get; set; }
        public static List<Model.StatusPoints> StatusPointsList { get; set; }
        public static List<string> EventInfoList { get; set; }
        public static List<Model.LiftStatus> StatusList { get; set; }

        static Config()
        {
            string dirpath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
            AEMConfigPath = System.IO.Path.Combine(dirpath, "AEM");
            LiftInftList = DAL.LiftInfo.List("");
            TypeLibList = DAL.TypeLib.List("");
            StatusPointsList = DAL.StatusPoints.List("");
            StatusList = DAL.LiftStatus.List("");
            lastData = new List<RecievedTempLog>();
            EventInfoList = BLL.Actions.Log.LoadEventInfo();
        }


    }
}
